package com.example.switchcontrolplatform.item;

import com.example.switchcontrolplatform.enumeration.UserLevel;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class User {
	private String userId; // 用户ID
	private UserLevel level; // 会员等级
	private LocalDateTime membershipSince; // 成为会员的时间
	private BigDecimal totalSpent; // 总消费金额
	private List<String> tags; // 用户标签

	// 构造器、Getters、Setters
	public User(String userId, UserLevel level) {
		this.userId = userId;
		this.level = level;
		this.tags = new ArrayList<>();
	}

	public boolean isVIP() {
		return level == UserLevel.VIP || level == UserLevel.SUPER_VIP;
	}
}
